//
//  ZZCBaseModel.m
//  B段项目
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 张智超. All rights reserved.
//

#import "ZZCBaseModel.h"

@implementation ZZCBaseModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary{
    
    self = [super init];
    if (self) {
        
        //给self赋值
        [self setValuesForKeysWithDictionary:dictionary];
        
    }
    
    return self;
}

+(instancetype)modelWithDictionary:(NSDictionary *)dictionary{
    
    
    
    
    return [[self alloc]initWithDictionary:dictionary];
    
    
}


//容错方法
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}




@end
